import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {UploadComponent} from "./upload/upload.component";

const appRoutes: Routes = [
    {
        path: 'upload', component: UploadComponent
    },
    {
        path: '', redirectTo: '/upload', pathMatch: 'full'
    },
];

@NgModule({
    imports: [RouterModule.forRoot(appRoutes, {enableTracing: true})],
    exports: [RouterModule]
})
export class AppRoutingModule {
}